﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class User:Father
    {
        public User(string name, string name1) : base(name, name1) { }
        public int key;
        public void talk1()
        {
            Console.WriteLine("请出拳：{0}", ListFist());
            key = int.Parse(Console.ReadLine());
            Console.Write($"{name}: 出拳：");
            Console.WriteLine(Fist());
        }
        public override fist Fist()
        {
 
            fist f = (fist)key;
            return f;
        }
        static string ListFist()
        {
            string fistString = null;
            int i = 1;
            foreach (fist t in Enum.GetValues(typeof(fist)))
            {
                fistString += $"{i}、{t} ";
                i++;
            }
            return fistString;
        }
    }
}
